require('../css/advertisement.less')
let jump = document.querySelector('main .jump')
let divbtn = document.querySelector('main div')
sirval(jump)
clikhlf(divbtn)
function sirval(jump) {
	num = 5
	time = window.setInterval(function () {
		num--
		if (num < 0) {
			window.clearInterval(time)
			window.location.href = './index.html'
		} else {
			jump.innerHTML = num + 's'
		}
	}, 1000)
}
function clikhlf(divbtn) {
	divbtn.addEventListener('click', function () {
		window.location.href = './index.html'
	})
}
